﻿@model IEstate.Core.Models.Estate

@{
    ViewBag.Title = "Details";
}

<div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 21px; font-weight: 300">Estate details by ID: @ViewBag.Id</div>

<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />

<table class="bordered">
    <thead>
        <tr>
            <th>#</th>
            <th>Street</th>
            <th>Bedroms</th>
            <th>Size</th>
            <th>Price</th>
            <th>User</th>
            <th>Phone</th>
        </tr>
    </thead>
    <tr>
        <td>@Html.DisplayFor(p => p.EstateID)</td>
        <td>@Html.DisplayFor(p => p.Street)</td>
        <td>@Html.DisplayFor(p => p.Bedrooms)</td>
        <td>@Html.DisplayFor(p => p.Size)</td>
        <td>@Html.DisplayFor(p => p.Price)</td>
        <td>@ViewBag.User</td>
        <td>@ViewBag.Phone</td>
    </tr>
</table>

<br />
@for (int i = 1; i <= (int)ViewBag.number; ++i)
{
    <img width="150" height="150" src="@Url.Action("GetImage", "Home", new { id = @ViewBag.id, value = @i })" />
}
